package joc.internal;

public class MethodCall {
	private String methodName;

	public MethodCall(String methodName) {
		this.methodName = methodName;
	}

	public String getMethodName() {
		return methodName;
	}

	@Override
	public boolean equals(Object obj) {
		if (obj == null || !obj.getClass().equals(MethodCall.class)) {
			return false;
		}
		MethodCall other = (MethodCall) obj;
		return methodName.equals(other.methodName);
	}

	@Override
	public int hashCode() {
		return methodName.hashCode();
	}
}